package com.googlecode.horncomb.web.spring.mvc;

import java.io.InputStream;

import org.springframework.core.io.InputStreamSource;

public class ServletResponeInputStreamSource implements InputStreamSource {
	private String contentType;
	private String fileName;
	private InputStream inputStream;

	public ServletResponeInputStreamSource(InputStream inputStream) {
		super();
		this.inputStream = inputStream;
	}

	public ServletResponeInputStreamSource(String fileName,
			InputStream inputStream) {
		super();
		this.fileName = fileName;
		this.inputStream = inputStream;
	}

	public ServletResponeInputStreamSource(String contentType, String fileName,
			InputStream inputStream) {
		super();
		this.contentType = contentType;
		this.fileName = fileName;
		this.inputStream = inputStream;
	}

	/**
	 * @return the contentType
	 */
	public String getContentType() {
		return contentType;
	}

	/**
	 * @param contentType
	 *            the contentType to set
	 */
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * @param fileName
	 *            the fileName to set
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * @return the inputStream
	 */
	public InputStream getInputStream() {
		return inputStream;
	}

	/**
	 * @param inputStream
	 *            the inputStream to set
	 */
	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}
}
